/*This file is part of WZLibCP.

 *  WZLibCP is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

 *  WZLibCP is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
    along with WZLibCP.  If not, see <http://www.gnu.org/licenses/>.
		
	Author: calc0000
*/
#include "stdafx.h"
#include "WZImageProperty.h"

namespace WZLib{
	WZImage**						WZImageProperty::imgParent	(){return &(this->_imgParent);}
	WZImageProperty::PropertyType&	WZImageProperty::propType	(){return this->_propType;}
	ctor WZImageProperty::WZImageProperty(WZImage* parent,PropertyType propType,std::string name,ObjectType type):WZObject(name,type){
		this->_imgParent=parent;
		this->_propType=propType;
	}
	dtor WZImageProperty::~WZImageProperty(){
	}
	std::string WZImageProperty::typeName(PropertyType type){
		switch(type){
			case Prop_Null:
				return "Null";
			case Prop_UnsignedShort:
				return "Unsigned Short";
			case Prop_CompressedInt:
				return "Int";
			case Prop_Vector:
				return "Vector";
			case Prop_Float:
				return "Float";
			case Prop_Double:
				return "Double";
			case Prop_String:
				return "String";
			case Prop_Sub:
				return "Sub";
			case Prop_Extended:
				return "Extended";
			case Prop_Canvas:
				return "Canvas";
			case Prop_Convex:
				return "Convex";
			case Prop_PNG:
				return "PNG";
			case Prop_MP3:
				return "MP3";
			case Prop_UOL:
				return "UOL";
			case Prop_Unknown:
				return "Unknown";
			default:
				return "Unidentified";
		}
	}
};